<template>
  <img v-bind:src="imageUrl" alt="图片">
</template>

<script setup>
import { ref } from 'vue';

const imageUrl = ref('https://scpic.chinaz.net/files/default/imgs/2025-01-07/635fecabed2203c8.jpg');
</script>

<style scoped>
img {
  width: 300px; 
  height: auto; 
}
</style>